import { map, deviceLayer, switchMap } from './baiduMap.js'
import { createMarker } from './marker.js'
import { markerIcon } from './icon.js'
import { initControlButtons } from './controlButtons.js'
import { initSwitchMapControl } from './switchMapControl.js'

Vue.config.productionTip = false;

initControlButtons(map);
initSwitchMapControl(switchMap);

let marker = createMarker(117.18060493, 31.81903928, {
    id: 1,
    title: '测试marker',
    name: '测试marker',
    icon: markerIcon
});

deviceLayer.addLayer(marker);
